package cn.wuxing.mediation.businessplatform.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: <描述>
 * @date: 2024/9/16 11:21
 * @author: yang
 * @version: 1.0
 */
@Getter
@AllArgsConstructor
public enum NotDisputeEventTypeEnum {

    // 1.法律援助咨询 2.劳动纠纷咨询 3.已专窗名称进行分类
    LEGAL_ASSISTANCE_CONSULTATION("1", "法律援助咨询"),

    LABOR_DISPUTE_CONSULTATION("2", "劳动纠纷咨询"),

    SPECIAL_WINDOW_NAME("3", "已专窗名称进行分类");

    private final String code;

    private final String desc;

    public static String getDescByCode(String code) {
        for (NotDisputeEventTypeEnum item : NotDisputeEventTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item.getDesc();
            }
        }
        return null;
    }
}
